<?php
namespace App\Transformers;

use League\Fractal\TransformerAbstract;
use Spatie\Permission\Models\Role;

class RoleTransformer extends TransformerAbstract {
    public function transform (Role $role){
        return [
            "name"=>$role->name,
        ];
    }
}